<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<link rel="stylesheet" type="text/css" href="../Styles/css_main.css">
<link rel="icon" type="image/png" href="../Content/favicon.ico">
<title>.: Handel :.</title>
</head>
<script type="text/javascript" src="../Scripts/jquery.js"></script>
<script type="text/javascript" src="../Scripts/handel-script.js"></script>

<style type="text/css">

.logo {
	padding-top: 20px;
	text-align:center;
}

.centro_azul {
	height: 350px; 
	margin-top: 20px;
}

.centro_azul > form {
	width: 100%;
	text-align:center;
	font-family:Arial, Helvetica, sans-serif;
	font-weight:600;
	font-size:15px;
	color: black;
}

#dslogin {
	margin-top: 33px;	
}

input {
	text-align:center;
	width:180px;
	height: 21px;
	margin-top: 8px;
}

input[type="submit"] {
	background-color: #07162E;
	color: white;
	margin-top: 17px;
	height: 28px;
}

.hint {
	display:none;
	height: 25px;
}

.hint p {
    margin-top: 0px;
    padding-top: 6px;

}

</style>

<body>

<div id="header" class="header"></div>

<div id="logo_login" class="logo"><img src = "../Content/logo.png" width="556" height="147" /></div>

<div id="naologado" class="centro_azul borda-arredondada hint"><p>Favor efetuar o login!<p></div>

<div id="loginerrado" class="centro_azul borda-arredondada hint"><p>Login/senha incorreto!<p></div>

<div id="login_main" class="centro_azul borda-arredondada">

	<form action="../Controller/logar.php" method="post" name="form_login" id="form_login" >
    	<input type="text" 	   name="dslogin" id="dslogin" maxlength="20" placeholder = "Login" title="Informe o Login" required x-moz-errormessage="Informe o Login" autofocus />
        <input type="password" name="dssenha" id="dssenha" maxlength="50" placeholder = "Senha" title="Informe a Senha" required x-moz-errormessage="Informe a Senha" />
        <input type="submit" name ="entrar" id="entrar" value="Entrar" onclick="valida_login();" />
    </form>
    <form action="cadastro_usuario.php" method="post" name="form_login" id="form_login" >
        <input type="submit" value="Registrar-se" />
    </form>
    
	<div id="login_ou" class="logo" style=" margin-top: 10px;">
    	<img src = "../Content/login_ou.png" width="76" height="34" />
	</div>
    
    <form action="" method="post" name="form_login_facebook" id="form_login_facebook" >
    	<input type="submit" id="dslogin" value="Entrar com Facebook" onclick="alert('Em desenvolvimento!');"/>
    </form>
    
</div>

<?php include 'trademark.php'; ?>

<script type="text/javascript">

if (getUrlParameter('er') == 1){
	$('#naologado').css('display' , 'block');
} else 
if (getUrlParameter('er') == 2){
	$('#loginerrado').css('display' , 'block');
}

</script>

</body>
</html>